import Header from "../components/Header";
import "./styles.css"; // 全局样式只能在当前文件导入
import { Provider } from "react-redux";
import makeStore from "../store";
import WhoAmI from "../components/WhoAmI";
export default ({ Component, ...props }) => {
  const store = makeStore(props.pageProps._initialState);
  return (
    <Provider store={store}>
      <WhoAmI />
      <div>
        <Header />
        <Component {...props} />
      </div>
    </Provider>
  );
};
